package com.example.day01.Photo_Wall;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.GridView;

import com.example.day01.R;

public class PhotoWallActivity extends AppCompatActivity {
    GridView photoGv;
    PhotoAdapter adapter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_photo_wall);
        photoGv=findViewById(R.id.photo_wall_gv);//查找控件
        //找到数据源
        String[] mDatas = ImageUrls.imageurls;
        //创建适配器

        adapter = new PhotoAdapter(this, mDatas);
        photoGv.setAdapter(adapter);
    }
}
